knitr::opts_chunk$set(echo = TRUE) options(digits=3) options(width=120) library(grid)
Invented by Rensis Likert (1932).
Questionaire items where respondents respond to a question on a sequence of ordered responses. Common response types include:
Likert, R (1932). A technique for the measurement of attitudes. Archives of Psychology. 140: 1–55.
A key question to ask when using Likert items: Is the variable categorical or contiuous?
When considering the response to be continuous you are assuming the intervals are equal? That is:
$$ Strongly Agree - Agree = Disagree - Neutral $$
This package aims to provide the necessary tools to allow the user to make his/her own decisions about how the data should be treated, while also providing figures that may help clarify how well the assumptions discussed here hold up.
The Programme of International Student Assessment (PISA; 2009) assess ~15 year-old students about their reading attitudes:
Students respond to one of four options: Strongly disagree, Disagree, Agree, Strongly Agree
library(likert)
Demo included in the package:
demo('likert', package='likert')
Data preparation:
data(pisaitems) items24 <- pisaitems[,substr(names(pisaitems), 1,5) == 'ST24Q'] names(items24) <- c(ST24Q01 = "I read only if I have to.", ST24Q02 = "Reading is one of my favorite hobbies.", ST24Q03 = "I like talking about books with other people.", ST24Q04 = "I find it hard to finish books.", ST24Q05 = "I feel happy if I receive a book as a present.", ST24Q06 = "For me, reading is a waste of time.", ST24Q07 = "I enjoy going to a bookstore or a library.", ST24Q08 = "I read only to get information that I need.", ST24Q09 = "I cannot sit still and read for more than a few minutes.", ST24Q10 = "I like to express my opinions about books I have read.", ST24Q11 = "I like to exchange books with my friends.")
str(items24)
likert
functionl24 <- likert(items24) l24 #print(l24)
summary(l24)
plot(l24)
The center
option will define what category is considered to be the center.
plot(l24, center=2)
plot(l24, ordered=FALSE, group.order=names(items24)) #Specify the exact order of the y-axis
plot(l24, colors=c('orange','darkorange','darkblue','blue'))
plot(l24, include.histogram=TRUE)
plot(l24, type='density', facet=FALSE)
plot(l24, type='heat', wrap=30, text.size=4)
l24g <- likert(items24[,1:5], grouping=pisaitems$CNT) print(l24g)
summary(l24g)
plot(l24g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.